package p.ithorns.sample.websocket.model;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * WsCache
 *
 * WebSocket 缓存
 *
 * @author HtL
 * @date 2024/10/9 15:47
 * @since 1.0.0
 */
@Getter
@Setter
public final class WsParam<E> implements Serializable {

    /**
     * 客户端ID
     */
    private String clientId;
    /**
     * 通道
     */
    private String channelId;
    /**
     * 消息类型
     */
    private String msgType;
    /**
     * 扩展参数
     */
    private E ext;


    public WsParam() {
    }

    public WsParam(String clientId) {
        this.clientId = clientId;
    }

}